/** @jsxImportSource @emotion/react */
import * as React from "react";
import { OriginalViewProps, } from "../../common/base";
import {EntranceSetup} from "./orcBase";
import { createItem, } from "../../common/eHelper";
import { useRecordListSubr} from "../../hook/useRecordListSub";
import {ConclusionPerform, DeviceSurveyPerform,} from "./Conclusion";
import {ProjectR} from "../../gas/utilityNj/ProjectR";

export const Projects记录=[
    {name:'电站锅炉性能试验报告',do:true,ha:'Conclusion'},
    {name:'概述', ha:'',},
    {name:'试验依据',ha:''},
    {name:'试验目的',ha:''},
    {name:'试验项目',ha:''},
    {name:'试验内容及测量项目与方法',ha:''},
    {name:'试验安排',  ha:''},
    {name:'试验计算原理',ha:''},
    {name:'试验结果及分析',ha:''},
    {name:'结论与建议',ha:''},
    {name:'附录',ha:'',},
];

const recordPrintList =[
    createItem('Entrance', <EntranceSetup/>),
    createItem('ProjectList', <ProjectR nrec config={Projects记录} label={'记录目录页'}/>),
    createItem('Survey', <DeviceSurveyPerform  label={'电站锅炉性能试验-设备概况'}/>),
    createItem('Conclusion', <ConclusionPerform label={'电站锅炉性能试验综合报告-下结论'}/>),

    createItem('_Controller',  <></>),
];

export const OriginalView=
  React.forwardRef((
    { action: modAction,  verId, repId='', rep}
    :OriginalViewProps, ref
  ) => {
    const {list}=useRecordListSubr(ref,rep,recordPrintList,modAction,verId);
    return <React.Fragment>
      {list}
    </React.Fragment>;
  } );
